﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Vo.ProductCategory
{
    public class ProductCategoryDetailVO
    {
        [JsonProperty(PropertyName = "id")]
        public long? Id { get; set; } = null;

        [JsonProperty(PropertyName = "categoryId")]
        public long? CategoryId { get; set; } = null;

        [JsonProperty(PropertyName = "categoryName")]
        public string CategoryName { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "parentId")]
        public long? ParentId { get; set; } = null;

        [JsonProperty(PropertyName = "orderNum")]
        public int? OrderNum { get; set; } = 0;

        [JsonProperty(PropertyName = "createdTime")]
        public DateTime? CreatedTime { get; set; } = null;

        [JsonProperty(PropertyName = "children")]
        public List<ProductCategoryDetailVO>? Children { get; set; } = null;
    }
}
